package com.xiaolong.server;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.xiaolong.VO.UserVO;

/**
 * @author gehao
 * @since Created by Administrator on 2016/12/8.
 */
@FeignClient(name = "example-app-server")
public interface RemoteService extends IBaseFeignService{

	@RequestMapping(value = "/api/demo/foo", method = RequestMethod.GET)
	String getFoo1();
	
	@RequestMapping(value = "/api/demo/map", method = RequestMethod.POST)
	String getMap(@RequestParam("param")String param);
	
	@RequestMapping(value = "/api/demo/getuser", method = RequestMethod.POST)
	UserVO getUser(@RequestParam("userName") String userName);
}
